/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-10-26
 * Time: 16:19
 */
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int i = in.nextInt();
        Flyable[] f = { new Parrot(), new Superman() };

        for (Flyable k : f) {
            k.fly();
        }
        System.out.println(i);

        Bird[] a = { new Parrot(), new Chicken() };

        for ( Bird b : a ) {
            b.sing();
        }

        in.close();
    }
}

/* 请在这里填写答案 */
abstract class Bird{
    abstract void sing();
}
interface Flyable {
    void fly();
}
class Chicken extends Bird{

    @Override
    void sing() {
        System.out.println("Chicken sings");
    }
}
class Superman implements Flyable {

    @Override
    public void fly() {
        System.out.println("Superman flies");
    }
}

class Parrot extends Bird implements Flyable{

    @Override
    void sing() {
        System.out.println("Parrot sings");
    }

    @Override
    public void fly() {
        System.out.println("Parrot flies");
    }
}


